﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005F9 RID: 1529
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GachaInfo : IMessage<GachaInfo>, IMessage, IEquatable<GachaInfo>, IDeepCloneable<GachaInfo>, IBufferMessage
	{
		// Token: 0x170013A4 RID: 5028
		// (get) Token: 0x060044CD RID: 17613 RVA: 0x000BC509 File Offset: 0x000BA709
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GachaInfo> Parser
		{
			get
			{
				return GachaInfo._parser;
			}
		}

		// Token: 0x170013A5 RID: 5029
		// (get) Token: 0x060044CE RID: 17614 RVA: 0x000BC510 File Offset: 0x000BA710
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GachaInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170013A6 RID: 5030
		// (get) Token: 0x060044CF RID: 17615 RVA: 0x000BC522 File Offset: 0x000BA722
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GachaInfo.Descriptor;
			}
		}

		// Token: 0x060044D0 RID: 17616 RVA: 0x000BC529 File Offset: 0x000BA729
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaInfo()
		{
		}

		// Token: 0x060044D1 RID: 17617 RVA: 0x000BC560 File Offset: 0x000BA760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaInfo(GachaInfo other) : this()
		{
			this.beginTime_ = other.beginTime_;
			this.detailWebview_ = other.detailWebview_;
			this.gachaId_ = other.gachaId_;
			this.aCKNCEHGNFI_ = other.aCKNCEHGNFI_;
			this.gachaCeiling_ = ((other.gachaCeiling_ != null) ? other.gachaCeiling_.Clone() : null);
			this.kLKAIDFHBAG_ = other.kLKAIDFHBAG_;
			this.prizeItemList_ = other.prizeItemList_.Clone();
			this.dropHistoryWebview_ = other.dropHistoryWebview_;
			this.itemDetailList_ = other.itemDetailList_.Clone();
			this.endTime_ = other.endTime_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060044D2 RID: 17618 RVA: 0x000BC616 File Offset: 0x000BA816
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaInfo Clone()
		{
			return new GachaInfo(this);
		}

		// Token: 0x170013A7 RID: 5031
		// (get) Token: 0x060044D3 RID: 17619 RVA: 0x000BC61E File Offset: 0x000BA81E
		// (set) Token: 0x060044D4 RID: 17620 RVA: 0x000BC626 File Offset: 0x000BA826
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long BeginTime
		{
			get
			{
				return this.beginTime_;
			}
			set
			{
				this.beginTime_ = value;
			}
		}

		// Token: 0x170013A8 RID: 5032
		// (get) Token: 0x060044D5 RID: 17621 RVA: 0x000BC62F File Offset: 0x000BA82F
		// (set) Token: 0x060044D6 RID: 17622 RVA: 0x000BC637 File Offset: 0x000BA837
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string DetailWebview
		{
			get
			{
				return this.detailWebview_;
			}
			set
			{
				this.detailWebview_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x170013A9 RID: 5033
		// (get) Token: 0x060044D7 RID: 17623 RVA: 0x000BC64A File Offset: 0x000BA84A
		// (set) Token: 0x060044D8 RID: 17624 RVA: 0x000BC652 File Offset: 0x000BA852
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaId
		{
			get
			{
				return this.gachaId_;
			}
			set
			{
				this.gachaId_ = value;
			}
		}

		// Token: 0x170013AA RID: 5034
		// (get) Token: 0x060044D9 RID: 17625 RVA: 0x000BC65B File Offset: 0x000BA85B
		// (set) Token: 0x060044DA RID: 17626 RVA: 0x000BC663 File Offset: 0x000BA863
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ACKNCEHGNFI
		{
			get
			{
				return this.aCKNCEHGNFI_;
			}
			set
			{
				this.aCKNCEHGNFI_ = value;
			}
		}

		// Token: 0x170013AB RID: 5035
		// (get) Token: 0x060044DB RID: 17627 RVA: 0x000BC66C File Offset: 0x000BA86C
		// (set) Token: 0x060044DC RID: 17628 RVA: 0x000BC674 File Offset: 0x000BA874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaCeiling GachaCeiling
		{
			get
			{
				return this.gachaCeiling_;
			}
			set
			{
				this.gachaCeiling_ = value;
			}
		}

		// Token: 0x170013AC RID: 5036
		// (get) Token: 0x060044DD RID: 17629 RVA: 0x000BC67D File Offset: 0x000BA87D
		// (set) Token: 0x060044DE RID: 17630 RVA: 0x000BC685 File Offset: 0x000BA885
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint KLKAIDFHBAG
		{
			get
			{
				return this.kLKAIDFHBAG_;
			}
			set
			{
				this.kLKAIDFHBAG_ = value;
			}
		}

		// Token: 0x170013AD RID: 5037
		// (get) Token: 0x060044DF RID: 17631 RVA: 0x000BC68E File Offset: 0x000BA88E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> PrizeItemList
		{
			get
			{
				return this.prizeItemList_;
			}
		}

		// Token: 0x170013AE RID: 5038
		// (get) Token: 0x060044E0 RID: 17632 RVA: 0x000BC696 File Offset: 0x000BA896
		// (set) Token: 0x060044E1 RID: 17633 RVA: 0x000BC69E File Offset: 0x000BA89E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string DropHistoryWebview
		{
			get
			{
				return this.dropHistoryWebview_;
			}
			set
			{
				this.dropHistoryWebview_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x170013AF RID: 5039
		// (get) Token: 0x060044E2 RID: 17634 RVA: 0x000BC6B1 File Offset: 0x000BA8B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ItemDetailList
		{
			get
			{
				return this.itemDetailList_;
			}
		}

		// Token: 0x170013B0 RID: 5040
		// (get) Token: 0x060044E3 RID: 17635 RVA: 0x000BC6B9 File Offset: 0x000BA8B9
		// (set) Token: 0x060044E4 RID: 17636 RVA: 0x000BC6C1 File Offset: 0x000BA8C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long EndTime
		{
			get
			{
				return this.endTime_;
			}
			set
			{
				this.endTime_ = value;
			}
		}

		// Token: 0x060044E5 RID: 17637 RVA: 0x000BC6CA File Offset: 0x000BA8CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GachaInfo);
		}

		// Token: 0x060044E6 RID: 17638 RVA: 0x000BC6D8 File Offset: 0x000BA8D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GachaInfo other)
		{
			return other != null && (other == this || (this.BeginTime == other.BeginTime && !(this.DetailWebview != other.DetailWebview) && this.GachaId == other.GachaId && this.ACKNCEHGNFI == other.ACKNCEHGNFI && object.Equals(this.GachaCeiling, other.GachaCeiling) && this.KLKAIDFHBAG == other.KLKAIDFHBAG && this.prizeItemList_.Equals(other.prizeItemList_) && !(this.DropHistoryWebview != other.DropHistoryWebview) && this.itemDetailList_.Equals(other.itemDetailList_) && this.EndTime == other.EndTime && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060044E7 RID: 17639 RVA: 0x000BC7BC File Offset: 0x000BA9BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BeginTime != 0L)
			{
				num ^= this.BeginTime.GetHashCode();
			}
			if (this.DetailWebview.Length != 0)
			{
				num ^= this.DetailWebview.GetHashCode();
			}
			if (this.GachaId != 0U)
			{
				num ^= this.GachaId.GetHashCode();
			}
			if (this.ACKNCEHGNFI != 0U)
			{
				num ^= this.ACKNCEHGNFI.GetHashCode();
			}
			if (this.gachaCeiling_ != null)
			{
				num ^= this.GachaCeiling.GetHashCode();
			}
			if (this.KLKAIDFHBAG != 0U)
			{
				num ^= this.KLKAIDFHBAG.GetHashCode();
			}
			num ^= this.prizeItemList_.GetHashCode();
			if (this.DropHistoryWebview.Length != 0)
			{
				num ^= this.DropHistoryWebview.GetHashCode();
			}
			num ^= this.itemDetailList_.GetHashCode();
			if (this.EndTime != 0L)
			{
				num ^= this.EndTime.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060044E8 RID: 17640 RVA: 0x000BC8C7 File Offset: 0x000BAAC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060044E9 RID: 17641 RVA: 0x000BC8CF File Offset: 0x000BAACF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060044EA RID: 17642 RVA: 0x000BC8D8 File Offset: 0x000BAAD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EndTime != 0L)
			{
				output.WriteRawTag(16);
				output.WriteInt64(this.EndTime);
			}
			if (this.ACKNCEHGNFI != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.ACKNCEHGNFI);
			}
			if (this.KLKAIDFHBAG != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.KLKAIDFHBAG);
			}
			if (this.GachaId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.GachaId);
			}
			if (this.DetailWebview.Length != 0)
			{
				output.WriteRawTag(66);
				output.WriteString(this.DetailWebview);
			}
			this.itemDetailList_.WriteTo(ref output, GachaInfo._repeated_itemDetailList_codec);
			if (this.DropHistoryWebview.Length != 0)
			{
				output.WriteRawTag(90);
				output.WriteString(this.DropHistoryWebview);
			}
			if (this.BeginTime != 0L)
			{
				output.WriteRawTag(104);
				output.WriteInt64(this.BeginTime);
			}
			this.prizeItemList_.WriteTo(ref output, GachaInfo._repeated_prizeItemList_codec);
			if (this.gachaCeiling_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.GachaCeiling);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060044EB RID: 17643 RVA: 0x000BCA08 File Offset: 0x000BAC08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BeginTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.BeginTime);
			}
			if (this.DetailWebview.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.DetailWebview);
			}
			if (this.GachaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaId);
			}
			if (this.ACKNCEHGNFI != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ACKNCEHGNFI);
			}
			if (this.gachaCeiling_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.GachaCeiling);
			}
			if (this.KLKAIDFHBAG != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.KLKAIDFHBAG);
			}
			num += this.prizeItemList_.CalculateSize(GachaInfo._repeated_prizeItemList_codec);
			if (this.DropHistoryWebview.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.DropHistoryWebview);
			}
			num += this.itemDetailList_.CalculateSize(GachaInfo._repeated_itemDetailList_codec);
			if (this.EndTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.EndTime);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060044EC RID: 17644 RVA: 0x000BCB20 File Offset: 0x000BAD20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GachaInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BeginTime != 0L)
			{
				this.BeginTime = other.BeginTime;
			}
			if (other.DetailWebview.Length != 0)
			{
				this.DetailWebview = other.DetailWebview;
			}
			if (other.GachaId != 0U)
			{
				this.GachaId = other.GachaId;
			}
			if (other.ACKNCEHGNFI != 0U)
			{
				this.ACKNCEHGNFI = other.ACKNCEHGNFI;
			}
			if (other.gachaCeiling_ != null)
			{
				if (this.gachaCeiling_ == null)
				{
					this.GachaCeiling = new GachaCeiling();
				}
				this.GachaCeiling.MergeFrom(other.GachaCeiling);
			}
			if (other.KLKAIDFHBAG != 0U)
			{
				this.KLKAIDFHBAG = other.KLKAIDFHBAG;
			}
			this.prizeItemList_.Add(other.prizeItemList_);
			if (other.DropHistoryWebview.Length != 0)
			{
				this.DropHistoryWebview = other.DropHistoryWebview;
			}
			this.itemDetailList_.Add(other.itemDetailList_);
			if (other.EndTime != 0L)
			{
				this.EndTime = other.EndTime;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060044ED RID: 17645 RVA: 0x000BCC2C File Offset: 0x000BAE2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060044EE RID: 17646 RVA: 0x000BCC38 File Offset: 0x000BAE38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num <= 40U)
					{
						if (num == 16U)
						{
							this.EndTime = input.ReadInt64();
							continue;
						}
						if (num == 32U)
						{
							this.ACKNCEHGNFI = input.ReadUInt32();
							continue;
						}
						if (num == 40U)
						{
							this.KLKAIDFHBAG = input.ReadUInt32();
							continue;
						}
					}
					else
					{
						if (num == 48U)
						{
							this.GachaId = input.ReadUInt32();
							continue;
						}
						if (num == 66U)
						{
							this.DetailWebview = input.ReadString();
							continue;
						}
						if (num == 80U)
						{
							goto IL_DA;
						}
					}
				}
				else if (num <= 104U)
				{
					if (num == 82U)
					{
						goto IL_DA;
					}
					if (num == 90U)
					{
						this.DropHistoryWebview = input.ReadString();
						continue;
					}
					if (num == 104U)
					{
						this.BeginTime = input.ReadInt64();
						continue;
					}
				}
				else
				{
					if (num == 112U || num == 114U)
					{
						this.prizeItemList_.AddEntriesFrom(ref input, GachaInfo._repeated_prizeItemList_codec);
						continue;
					}
					if (num == 122U)
					{
						if (this.gachaCeiling_ == null)
						{
							this.GachaCeiling = new GachaCeiling();
						}
						input.ReadMessage(this.GachaCeiling);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_DA:
				this.itemDetailList_.AddEntriesFrom(ref input, GachaInfo._repeated_itemDetailList_codec);
			}
		}

		// Token: 0x04001B1E RID: 6942
		private static readonly MessageParser<GachaInfo> _parser = new MessageParser<GachaInfo>(() => new GachaInfo());

		// Token: 0x04001B1F RID: 6943
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001B20 RID: 6944
		public const int BeginTimeFieldNumber = 13;

		// Token: 0x04001B21 RID: 6945
		private long beginTime_;

		// Token: 0x04001B22 RID: 6946
		public const int DetailWebviewFieldNumber = 8;

		// Token: 0x04001B23 RID: 6947
		private string detailWebview_ = "";

		// Token: 0x04001B24 RID: 6948
		public const int GachaIdFieldNumber = 6;

		// Token: 0x04001B25 RID: 6949
		private uint gachaId_;

		// Token: 0x04001B26 RID: 6950
		public const int ACKNCEHGNFIFieldNumber = 4;

		// Token: 0x04001B27 RID: 6951
		private uint aCKNCEHGNFI_;

		// Token: 0x04001B28 RID: 6952
		public const int GachaCeilingFieldNumber = 15;

		// Token: 0x04001B29 RID: 6953
		private GachaCeiling gachaCeiling_;

		// Token: 0x04001B2A RID: 6954
		public const int KLKAIDFHBAGFieldNumber = 5;

		// Token: 0x04001B2B RID: 6955
		private uint kLKAIDFHBAG_;

		// Token: 0x04001B2C RID: 6956
		public const int PrizeItemListFieldNumber = 14;

		// Token: 0x04001B2D RID: 6957
		private static readonly FieldCodec<uint> _repeated_prizeItemList_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x04001B2E RID: 6958
		private readonly RepeatedField<uint> prizeItemList_ = new RepeatedField<uint>();

		// Token: 0x04001B2F RID: 6959
		public const int DropHistoryWebviewFieldNumber = 11;

		// Token: 0x04001B30 RID: 6960
		private string dropHistoryWebview_ = "";

		// Token: 0x04001B31 RID: 6961
		public const int ItemDetailListFieldNumber = 10;

		// Token: 0x04001B32 RID: 6962
		private static readonly FieldCodec<uint> _repeated_itemDetailList_codec = FieldCodec.ForUInt32(82U);

		// Token: 0x04001B33 RID: 6963
		private readonly RepeatedField<uint> itemDetailList_ = new RepeatedField<uint>();

		// Token: 0x04001B34 RID: 6964
		public const int EndTimeFieldNumber = 2;

		// Token: 0x04001B35 RID: 6965
		private long endTime_;
	}
}
